package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户角色 Mapper 接口
 * @author yuxiangxun
 * @date 2025/1/29
 * @apiNote
 */
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {


    /**
     * 添加用户角色
     * @param id
     * @param roleIdList
     */
    void insertUserRole(@Param("userId") Integer id, @Param("roleIdList") List<String> roleIdList);
}
